package com.hst.web.sys.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hst.core.annotation.Comment;

/**
 * 
 * @author Adrian
 *
 */
@Entity
@Table(name="sys_role_menu")
@Comment("角色菜单关系表")
public class TRoleMenu implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Comment("角色id")
	@Id
	@Column(length=10, name="id_role")
	private String roleId;
	
	@Comment("菜单id")
	@Id
	@Column(length=10, name="id_menu")
	private String menuId;

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public TRoleMenu(String roleId, String menuId) {
		super();
		this.roleId = roleId;
		this.menuId = menuId;
	}

	public TRoleMenu() {
		super();
	}
}
